#include <stdio.h>

int main()
{
    int i;
    int arr[5]={8,5,3,5,8};
    int result = 0;
    for (int i = 0; i < 5; ++i)
    {
        result ^= arr[i];
        //0^8^5^3^5^8
        //0^(8^8)^(5^5)^3
        //0^0^0^3
        //3
    }
    printf("%d\n", result);

    return 0;
}